<%
response.setHeader("Pragma", "public");
response.setHeader("Cache-Control", "max-age=0");
response.addHeader("Content-disposition", "attachment;filename=srv.kml");
%><%@ page contentType="application/vnd.google-earth.kml+xml" %><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
	<Document>
		<name><bean:message key="app.name.principal" /></name>
		<visibility>1</visibility>
		<flyToView>1</flyToView>
		<open>1</open>
		
<c:forEach items="${pontos}" var="ponto">
		<Placemark>
			<name>${ponto.DESC}</name>
			<open>1</open>
			<styleUrl>root://styles#default</styleUrl>
			<Style>
				<IconStyle>
					<Icon>
						<href>root://icons/palette-4.png</href>
						<x>224</x>
						<y>128</y>
						<w>32</w>
						<h>32</h>
					</Icon>
				</IconStyle>
			</Style>
			<altitudeMode>clampedToGround</altitudeMode>
			<Point>
				<coordinates>${ponto.X}, ${ponto.Y},0</coordinates>
			</Point>
		</Placemark>	
</c:forEach>		
		
	</Document>
</kml>